<?php
require '../../../zb_system/function/c_system_base.php';

require '../../../zb_system/function/c_system_admin.php';

$zbp->Load();

$action='root';
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}

if (!$zbp->CheckPlugin('Rating')) {$zbp->ShowError(48);die();}

$blogtitle='留言评级';

if(count($_POST)>0){

        $zbp->Config('Rating')->open_reg=$_POST['open_reg'];
        $zbp->Config('Rating')->tcvip1=$_POST['tcvip1'];
        $zbp->Config('Rating')->tcvip2=$_POST['tcvip2'];
        $zbp->Config('Rating')->tcvip3=$_POST['tcvip3'];
        $zbp->Config('Rating')->tcvip4=$_POST['tcvip4'];
        $zbp->Config('Rating')->tcvip5=$_POST['tcvip5'];
        $zbp->Config('Rating')->tcvip6=$_POST['tcvip6'];
        $zbp->Config('Rating')->tcvip7=$_POST['tcvip7'];
        $zbp->SaveConfig('Rating');
        $zbp->SetHint('good');
        Redirect('./main.php');
}


require $blogpath . 'zb_system/admin/admin_header.php';
require $blogpath . 'zb_system/admin/admin_top.php';

?>
<div id="divMain">

  <div class="divHeader"><?php echo $blogtitle;?></div>
<div class="SubMenu"></div>
  <div id="divMain2">
	<form id="edit" name="edit" method="post" action="#">
<input id="reset" name="reset" type="hidden" value="" />
<table border="1" class="tableFull tableBorder">
<tr>
	<td class="td30"><p align='left'><b>博主的邮箱</b></p></td>
	<td><input type="text"  name="open_reg" value="<?php echo $zbp->Config('Rating')->open_reg;?>" /></td>
</tr>
<tr>
    <td class="td30"><p align='left'><b>用户等级</b></p></td>
    <td>说辞</td>
</tr>
<tr>
    <td class="td30"><p align='left'><b>0 ~ 10</b></p></td>
    <td><input type="text"  name="tcvip1" value="<?php echo $zbp->Config('Rating')->tcvip1;?>" /></td>
</tr>
<tr>
    <td class="td30"><p align='left'><b>10 ~ 20</b></p></td>
    <td><input type="text"  name="tcvip2" value="<?php echo $zbp->Config('Rating')->tcvip2;?>" /></td>
</tr>
<tr>
    <td class="td30"><p align='left'><b>20 ~ 30</b></p></td>
    <td><input type="text"  name="tcvip3" value="<?php echo $zbp->Config('Rating')->tcvip3;?>" /></td>
</tr>
<tr>
    <td class="td30"><p align='left'><b>30 ~ 40</b></p></td>
    <td><input type="text"  name="tcvip4" value="<?php echo $zbp->Config('Rating')->tcvip4;?>" /></td>
</tr>
<tr>
    <td class="td30"><p align='left'><b>40 ~ 50</b></p></td>
    <td><input type="text"  name="tcvip5" value="<?php echo $zbp->Config('Rating')->tcvip5;?>" /></td>
</tr>
<tr>
    <td class="td30"><p align='left'><b>50 ~ 100</b></p></td>
    <td><input type="text"  name="tcvip6" value="<?php echo $zbp->Config('Rating')->tcvip6;?>" /></td>
</tr>
<tr>
    <td class="td30"><p align='left'><b>100以上</b></p></td>
    <td><input type="text"  name="tcvip7" value="<?php echo $zbp->Config('Rating')->tcvip7;?>" /></td>
</tr>
</table>

	  <hr/>
	  <p>
		<input type="submit" class="button" value="<?php echo $lang['msg']['submit']?>" />
	</form>
    使用说明：<br>
1、在“博主的邮箱”处填写博主的邮箱，博主的留言将显示博主标志<br>
2、将 {Rating_get_author_class($comment.Author.Email)} 标签放入你当前主题的comment.php模板的“{$comment.Author.Name}《/a>”的后面。<br>
3、或根据个人情况放到的合适的位置<br>
4、返回后台首页点[更新缓存]编译模板即可生效。<br>
	<script type="text/javascript">ActiveLeftMenu("aPluginMng");</script>
	<script type="text/javascript">AddHeaderIcon("<?php echo $bloghost . 'zb_users/plugin/Rating/logo.png';?>");</script>	
  </div>
</div>

<?php
require $blogpath . 'zb_system/admin/admin_footer.php';

RunTime();
?>